package cloud.xlh.infrastructure.service_register_recoverd;

import cloud.xlh.infrastructure.BasePropertiesConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2022/10/16 20:31
 * @ Description:
 */
@ConfigurationProperties(
        prefix = "xlh.register-center" //yml或者properties文件里面属性的前缀，前缀加具体属性名就对应RabbitProperties 的属性名，值自然而然也会取到
)
@Configuration
@Data
public class MyRegisterCenterProperties extends BasePropertiesConfig {
    private int serverPort;
    private String applicationName;
    private String serverAddress;

}
